package org.wendu.wdoa.dto;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class TaskBeanDto { //int默认未0，Integer默认为null 所以int可以用在主键和外键

    private int task_id;
    private String e_id; //一次可以传入多个员工执行此任务
    private Date tr_assign_date;  //下达日期
    private Date tr_receive_date; //接受时间
    private Date tr_submit_date;  // 汇报时间
    private Date tr_check_date;   //审核时间
    private String tr_advice;       //审批意见
    private Integer tr_status;

    public int getTask_id() {
        return task_id;
    }

    public void setTask_id(int task_id) {
        this.task_id = task_id;
    }

    public String getE_id() {
        return e_id;
    }

    public void setE_id(String e_id) {
        this.e_id = e_id;
    }

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    public Date getTr_assign_date() {
        return tr_assign_date;
    }

    public void setTr_assign_date(Date tr_assign_date) {
        this.tr_assign_date = tr_assign_date;
    }
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    public Date getTr_receive_date() {
        return tr_receive_date;
    }

    public void setTr_receive_date(Date tr_receive_date) {
        this.tr_receive_date = tr_receive_date;
    }
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    public Date getTr_submit_date() {
        return tr_submit_date;
    }

    public void setTr_submit_date(Date tr_submit_date) {
        this.tr_submit_date = tr_submit_date;
    }
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    public Date getTr_check_date() {
        return tr_check_date;
    }

    public void setTr_check_date(Date tr_check_date) {
        this.tr_check_date = tr_check_date;
    }

    public String getTr_advice() {
        return tr_advice;
    }

    public void setTr_advice(String tr_advice) {
        this.tr_advice = tr_advice;
    }

    public Integer getTr_status() {
        return tr_status;
    }

    public void setTr_status(Integer tr_status) {
        this.tr_status = tr_status;
    }
}
